/*/----------------------------//
  Banner Artigos Recentes
  equipe meegha gospel
//----------------------------/*/
var reccentTitles = new Array();
var reccentTitlesNum = 0;
var reccentUrls = new Array();
var thumburl = new Array();
function reccent_results_labels_thumbs(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
reccentTitles[reccentTitlesNum] = entry.title.$t;
try 
{thumburl[reccentTitlesNum]=entry.media$thumbnail.url;}
catch (error){
	if(typeof(entry.content==='undefined')&&!entry.content){
		var s=entry.summary.$t;	
	} else{
		var s=entry.content.$t;
	}
a=s.indexOf("<img");
b=s.indexOf("src=\"",a);
c=s.indexOf("\"",b+5);
d=s.substr(b+5,c-b-5);
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
thumburl[reccentTitlesNum]=d;} else thumburl[reccentTitlesNum]='http://lh5.ggpht.com/_NBm6T2_gd54/S-XA5Oxnq4I/AAAAAAAAByw/BRo_A0gvQbU/semimagem.gif';
}
if(reccentTitles[reccentTitlesNum].length>50) reccentTitles[reccentTitlesNum]=reccentTitles[reccentTitlesNum].substring(0, 50)+"...";
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
reccentUrls[reccentTitlesNum] = entry.link[k].href;
reccentTitlesNum++;
}
}
}
}
function contains_thumbs(a, e) {
for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
return false;
}
function recentes() {
for(var i = 0; i < reccentUrls.length; i++)
{
if((!(reccentTitles[i])))
{
reccentUrls.splice(i,1);
reccentTitles.splice(i,1);
thumburl.splice(i,1);

}
}
var r = 0;
var i = 0;
document.write('<div id="bannerposts3" style="clear: both; width:1150px; height:90px; text-align:center; border:0px solid #000000;"/>');
while (i < reccentTitles.length && i < 20) {
document.write('<a style="text-decoration:none;padding:0 3px 0 0;float:left; cursor:pointer; margin:0; cursor:hand;');
if(i!=0) document.write('border-left:solid 0px #000000;"');
else document.write('"');
document.write(' href="' + reccentUrls[r] + '" title="Leia o artigo: '+reccentTitles[r]+'">																																																																	<div style="width:238px;height:90px;border: 0pt none ; margin: 0; padding: 0;">  <img style="width:72px;height:72px;border:0px; margin:8px; float:left;" src="'+thumburl[r]+'"/><div class="textlink" style="position:relative; bottom:0px;">'+reccentTitles[r]+'</div></div></a>');
if (r < reccentTitles.length - 1) {
r++;
} else {
r = 0;
}
i++;
}
document.write('');
}